#include <stdio.h>
#include <string.h>
int main()
{
struct student
{
long num;
char name[20];
char sex;
float score;
};
struct student stu1;
struct student *p;
p=&stu1;
stu1.num=10101;
strcpy(stu1.name, "Li Lin"); 
stu1.sex='M';
stu1.score=89.5;
printf("No.:%1d\nname:%s\nsex:%c\nscore:%5.1f\n",stu1.num,stu1.name,stu1.sex,stu1.score);
printf("\nNo.:%1d\nname:%s\nsex:%c\nscore:%5.1f\n",(*p).num,(*p).name,(*p).sex,(*p).score);
return 0;}
